<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
	xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
	xmlns:camunda="http://camunda.org/schema/1.0/bpmn" 
	targetNamespace="Examples">

	<signal id="alertSignal" name="alert" />

	<process id="process" isExecutable="true">

		<startEvent id="start" />

		<sequenceFlow sourceRef="start" targetRef="gw1" />

		<eventBasedGateway id="gw1" />

		<sequenceFlow sourceRef="gw1" targetRef="signalEvent" />

		<sequenceFlow sourceRef="gw1" targetRef="timerEvent" />

		<intermediateCatchEvent id="signalEvent">
			<signalEventDefinition signalRef="alertSignal" />
		</intermediateCatchEvent>

		<intermediateCatchEvent id="timerEvent">
			<timerEventDefinition>
        <timeCycle>0 0/5 * * * ?</timeCycle>
			</timerEventDefinition>
		</intermediateCatchEvent>

		<sequenceFlow sourceRef="timerEvent" targetRef="task1" />

		<sequenceFlow sourceRef="signalEvent" targetRef="task2" />

		<userTask id="task1" name="afterTimer" camunda:assignee="kermit"/>

		<userTask id="task2" name="afterSignal" camunda:assignee="kermit"/>

		<sequenceFlow sourceRef="task1" targetRef="end" />

		<sequenceFlow sourceRef="task2" targetRef="end" />

		<endEvent id="end" />

	</process>

</definitions>
